package com.cow.sram.data.dto;

import java.util.Date;

public class VisitinglogDTO {
	private Long logid;
	private String username;
	private String loginip;
	private Date logintime;
	private String issuccess;
	private String systemid;
	private String visittype;

	// Constructors

	public String getIssuccess() {
		if(issuccess!=null){
			if(issuccess.equals("0")){
				return "ʧ��";
			}
			else if(issuccess.equals("1")){
				return "�ɹ�";
			}
		}
		return "δ֪";
	}

	public void setIssuccess(String issuccess) {
		this.issuccess = issuccess;
	}

	/** default constructor */
	public VisitinglogDTO() {
	}

	/** full constructor */
	public VisitinglogDTO(Long logid, String username, String loginip,
			Date logintime,String issuccess) {
		this.logid = logid;
		this.username = username;
		this.loginip = loginip;
		this.logintime = logintime;
		this.issuccess=issuccess;
	}
	
	public VisitinglogDTO(Long logid, String username, String loginip,
			Date logintime,String issuccess,String systemid,String visittype) {
		this.logid = logid;
		this.username = username;
		this.loginip = loginip;
		this.logintime = logintime;
		this.issuccess=issuccess;
		this.systemid=systemid;
		this.visittype=visittype;
	}

	// Property accessors

	public Long getLogid() {
		return this.logid;
	}

	public void setLogid(Long logid) {
		this.logid = logid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getLoginip() {
		return this.loginip;
	}

	public void setLoginip(String loginip) {
		this.loginip = loginip;
	}

	public Date getLogintime() {
		return this.logintime;
	}

	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}

	public void setVisittype(String visittype) {
		this.visittype = visittype;
	}

	public String getVisittype() {
		return visittype;
	}

	public void setSystemid(String systemid) {
		this.systemid = systemid;
	}

	public String getSystemid() {
		return systemid;
	}
}
